package com.tony.blog.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tony.blog.model.entity.SysRoleMenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * @Title: SysRoleMenuMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/07/09/10:05
 * @Description: 角色与菜单对应关系
 */
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenuEntity> {

    /**
    * @Description: deleteBatch 批量删除
    * @Param: [roleIds]
    * @return: boolean
    * @Author: 皮蛋布丁
    * @Date: 2021/7/25 11:09
    */
    boolean deleteBatch(@Param("roleIds") String roleIds);

    /**
    * @Description: queryMenuIdList 获取角色菜单列表
    * @Param: [roleId]
    * @return: java.util.List<java.lang.Long>
    * @Author: 皮蛋布丁
    * @Date: 2021/7/25 14:52
    */
    List<Long> queryMenuIdList(Long roleId);
}